package com.egobuy.pojo;

/**
 * @author Hello
 */
public class BuyResult<T> {
    private int status;
    private String msg;
    private T data;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
    public static BuyResult ok(Object t){
        BuyResult result = new BuyResult();
        result.setStatus(200);
        result.setMsg("ok");
        result.setData(t);
        return result;
    }
    public static  BuyResult ok(){
        BuyResult buyResult=new BuyResult();
        buyResult.setStatus(200);
        buyResult.setMsg("ok");
        return buyResult;
    }
}
